Optimal. Leaf size=142 \[ -\frac{\text{PolyLog}(2,e x) \left (a+b \log \left (c x^n\right )\right )}{x}-b e n \text{PolyLog}(2,e x)-\frac{b n \text{PolyLog}(2,e x)}{x}+e \log (x) \left (a+b \log \left (c x^n\right )\right )-e \log (1-e x) \left (a+b \log \left (c x^n\right )\right )+\frac{\log (1-e x) \left (a+b \log \left (c x^n\right )\right )}{x}-\frac{1}{2} b e n \log ^2(x)+2 b e n \log (x)-2 b e n \log (1-e x)+\frac{2 b n \log (1-e x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.113685, antiderivative size = 142, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 8, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.421, Rules used = {2385, 2395, 36, 29, 31, 2376, 2301, 2391} \[ -\frac{\text{PolyLog}(2,e x) \left (a+b \log \left (c x^n\right )\right )}{x}-b e n \text{PolyLog}(2,e x)-\frac{b n \text{PolyLog}(2,e x)}{x}+e \log (x) \left (a+b \log \left (c x^n\right )\right )-e \log (1-e x) \left (a+b \log \left (c x^n\right )\right )+\frac{\log (1-e x) \left (a+b \log \left (c x^n\right )\right )}{x}-\frac{1}{2} b e n \log ^2(x)+2 b e n \log (x)-2 b e n \log (1-e x)+\frac{2 b n \log (1-e x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2385
Rule 2395
Rule 36
Rule 29
Rule 31
Rule 2376
Rule 2301
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x^2} \, dx &=-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}-(b n) \int \frac{\log (1-e x)}{x^2} \, dx-\int \frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x^2} \, dx\\ &=e \log (x) \left (a+b \log \left (c x^n\right )\right )+\frac{b n \log (1-e x)}{x}-e \left (a+b \log \left (c x^n\right )\right ) \log (1-e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x}-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}+(b n) \int \left (-\frac{e \log (x)}{x}-\frac{\log (1-e x)}{x^2}+\frac{e \log (1-e x)}{x}\right ) \, dx+(b e n) \int \frac{1}{x (1-e x)} \, dx\\ &=e \log (x) \left (a+b \log \left (c x^n\right )\right )+\frac{b n \log (1-e x)}{x}-e \left (a+b \log \left (c x^n\right )\right ) \log (1-e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x}-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}-(b n) \int \frac{\log (1-e x)}{x^2} \, dx+(b e n) \int \frac{1}{x} \, dx-(b e n) \int \frac{\log (x)}{x} \, dx+(b e n) \int \frac{\log (1-e x)}{x} \, dx+\left (b e^2 n\right ) \int \frac{1}{1-e x} \, dx\\ &=b e n \log (x)-\frac{1}{2} b e n \log ^2(x)+e \log (x) \left (a+b \log \left (c x^n\right )\right )-b e n \log (1-e x)+\frac{2 b n \log (1-e x)}{x}-e \left (a+b \log \left (c x^n\right )\right ) \log (1-e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x}-b e n \text{Li}_2(e x)-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}+(b e n) \int \frac{1}{x (1-e x)} \, dx\\ &=b e n \log (x)-\frac{1}{2} b e n \log ^2(x)+e \log (x) \left (a+b \log \left (c x^n\right )\right )-b e n \log (1-e x)+\frac{2 b n \log (1-e x)}{x}-e \left (a+b \log \left (c x^n\right )\right ) \log (1-e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x}-b e n \text{Li}_2(e x)-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}+(b e n) \int \frac{1}{x} \, dx+\left (b e^2 n\right ) \int \frac{1}{1-e x} \, dx\\ &=2 b e n \log (x)-\frac{1}{2} b e n \log ^2(x)+e \log (x) \left (a+b \log \left (c x^n\right )\right )-2 b e n \log (1-e x)+\frac{2 b n \log (1-e x)}{x}-e \left (a+b \log \left (c x^n\right )\right ) \log (1-e x)+\frac{\left (a+b \log \left (c x^n\right )\right ) \log (1-e x)}{x}-b e n \text{Li}_2(e x)-\frac{b n \text{Li}_2(e x)}{x}-\frac{\left (a+b \log \left (c x^n\right )\right ) \text{Li}_2(e x)}{x}\\ \end{align*}
Mathematica [A] time = 0.153703, size = 115, normalized size = 0.81 \[ \frac{(-\text{PolyLog}(2,e x)+e x \log (x)+(1-e x) \log (1-e x)) \left (a+b \log \left (c x^n\right )-b n \log (x)\right )}{x}+\frac{b n \left (-2 (e x+\log (x)+1) \text{PolyLog}(2,e x)+e x \log ^2(x)+\log (x) (4 e x+(2-2 e x) \log (1-e x))-4 (e x-1) \log (1-e x)\right )}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.145, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( a+b\ln \left ( c{x}^{n} \right ) \right ){\it polylog} \left ( 2,ex \right ) }{{x}^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\left (e \log \left (x\right ) - \frac{{\left (e x - 1\right )} \log \left (-e x + 1\right ) +{\rm Li}_2\left (e x\right )}{x}\right )} a - b{\left (\frac{{\left (n + \log \left (c\right ) + \log \left (x^{n}\right )\right )}{\rm Li}_2\left (e x\right ) -{\left (e n x \log \left (x\right ) + 2 \, n + \log \left (c\right )\right )} \log \left (-e x + 1\right ) -{\left (e x \log \left (x\right ) -{\left (e x - 1\right )} \log \left (-e x + 1\right )\right )} \log \left (x^{n}\right )}{x} + \int \frac{2 \, e n + e \log \left (c\right ) +{\left (2 \, e^{2} n x - e n\right )} \log \left (x\right )}{e x^{2} - x}\,{d x}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.974024, size = 351, normalized size = 2.47 \begin{align*} \frac{b e n x \log \left (x\right )^{2} - 2 \,{\left (b e n x + b n + a\right )}{\rm Li}_2\left (e x\right ) + 2 \,{\left (2 \, b n -{\left (2 \, b e n + a e\right )} x + a\right )} \log \left (-e x + 1\right ) - 2 \,{\left (b{\rm Li}_2\left (e x\right ) +{\left (b e x - b\right )} \log \left (-e x + 1\right )\right )} \log \left (c\right ) + 2 \,{\left (b e x \log \left (c\right ) - b n{\rm Li}_2\left (e x\right ) +{\left (2 \, b e n + a e\right )} x -{\left (b e n x - b n\right )} \log \left (-e x + 1\right )\right )} \log \left (x\right )}{2 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c x^{n}\right ) + a\right )}{\rm Li}_2\left (e x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]